﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>
<script language="javascript" src="/support/editor/script_common.js"></script>
<script language="javascript" src="/support/editor/editor_function.js"></script>

<div class="layout-cols2">

	
		    <%csharp%>if( IsPost){ <%/csharp%>
	    
	    <%template _MsgBox%>
	    
	    <%csharp%> } else { <%/csharp%>
	    
	    <div class="box">
	        <div class="caption">
	            添加回复
	        </div>
	        <div class="content">
	            <br />
	            <form id="replyform" name="replyform" method="post" action="" encType="multipart/form-data">
	                <input type="hidden" name="gid" value={TopicData.Groupid} />
	                <input type="hidden" name="tid" value={TopicData.Id} />
	                <input type="hidden" name="rid" value={ReplyData.Id} />
	             <table class="editboxstyle">
	                <col style="width:60px" />
	                <tbody>
	                <tr>
                        <td>标题：</td>
	                    <td>
	                        <input type="text" size="60" class="inputstyle" readonly="true"
	                            <%csharp%>if(ReplyData.Id <= 0) { <%/csharp%>
	                                value="回复: {TopicData.Title}"
	                            <%csharp%> } else { <%/csharp%>
	                                value="回复: 第 {ReplyData.FloorNo} 楼 "
	                            <%csharp%> } <%/csharp%>
	                        />
	                        &nbsp;&nbsp;
	                    </td>
	                 </tr>
	                     
	                 <tr valign="top">
                         <td>内容：</td>
                         <td>
                          <textarea id="uchome-ttHtmlEditor" name="rbody" cols="90" rows="15" style="display:none"></textarea> 
                            <iframe src="/support/editor/editor.htm" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:600px;border: 1px solid #C5C5C5;" height="300"></iframe>
                            <p>内容长度必须在{Config.ReplyMinSize}-{Config.ReplyMaxSize}之间</p>
    	            </tr>
    	            <tr>
    	                <td>附件：
    	                </td>
	                    <td>
	                        <div id="uploadDiv">
	                            <input name="file" id="file" type="file" size="40" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" />
	                        </div>
	                        <span>类型限定（RAR、ZIP、TXT、JPG、PNG、GIF）文件最大为1M</span>
	                    </td>
	                    
	                 </tr>
    	            <tr>
    	                <td></td>
                        <td align="right"> 
    	                      <a href="#" onclick="CheckForm();" class="yellowbutton">提交</a>
                        </td>
    	            </tr>   
	                </tbody>
	                </table>             
	            </form>
	            <script type="text/javascript">
	                function CheckForm()
	                {
	                    _$('replyform').submit();
	                }
	            </script>
	            <br />
	        </div>
	    </div>
	    
	    <%csharp%> } <%/csharp%>
		
	
</div>

<%template _footer%>